package com.design.model2;

/**
 * @author by liuxin
 * @version 0.1
 * @Classname Context
 * @Description 环境类，承上启下的作用，
 */
public class Context {

    Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    /**
     * 执行具体算法
     */
    public void contextInterface() {
        strategy.algorithmInterface();
    }
}
